package com.rymcu.subject.service;

import com.rymcu.subject.entity.SignCharData;
import com.rymcu.subject.entity.SubjectAnswerRecord;

import java.util.Date;
import java.util.List;

public interface SubjectAnswerRecordService {


    int deleteByPrimaryKey(Long id);

    int insert(SubjectAnswerRecord record);

    int insertSelective(SubjectAnswerRecord record);

    SubjectAnswerRecord selectByPrimaryKey(Long id);

    boolean existsAnswerRecord(
            long userId,
            Date now,
            boolean everydayFlag
    );

    /**
     * 获取签到图数据
     *
     * @param userId
     *         用户id
     * @param now
     * @return
     */
    List<SignCharData> listSignChartData(
            long userId,
            Date now
    );
}
